package cn.zxy.controller;

import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api")
public class TeacherController {
    @GetMapping("/teacher")
    public String get(){
        return "生蚝猫咪";
    }

    @PostMapping("/teacher")
    public Integer post(){
        System.out.println("执行post请求");
        return 1;
    }

    @PutMapping("/teacher")
    public Integer put(){
        System.out.println("执行put请求");
        return 1;
    }

    @DeleteMapping("/teacher")
    public Integer delete (){
        System.out.println("执行delete请求");
        return 1;
    }
}
